<template>
	<div>
		<el-dialog title="科室监控" :visible.sync="open" width="90%" :before-close="close" class="edit-dialog">
			<el-form ref="form" label-width="180px">
				<div class="edit-box">
					<iframe :src="url" width="100%" height="800" frameborder="0" allowfullscreen></iframe>
				</div>
			</el-form>
		</el-dialog>
		<!-- 加载登录页去登录 -->
		<iframe src="http://localhost:8081/#/login" v-show="false" width="100%" height="800" frameborder="0" allowfullscreen></iframe>
	</div>
</template>
<script>
	export default {
		name: 'camera',
		data() {
			return {
				url: '',
				// 监控弹窗
				open: false,
			}
		},
		created() {

		},
		methods: {
			openC(id,departmentCode) {
        // alert(id)
				this.url = 'http://localhost:8081/#/channelList/'+id+'/0?departmentCode='+departmentCode
				this.open = true
			},
			close(id) {
				this.open = false
			}
		}
	}
</script>
<style scoped lang="scss">
</style>
